package com.mybatis;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/**
 * Created by fangjicai on 2020/6/8.
 */

@SpringBootApplication
@EnableTransactionManagement//开启事务管理
@MapperScan("com.mybatis.mapper")//定义扫描的接口路径
public class App {
    public static void main(String[] args) {
        SpringApplication.run(App.class,args);
    }
}
